package com.jbit.dm212.common;

public class ResponseResultUtils {
    public static <T>ResponseResult<T> sendSuccess(T value){
        return new ResponseResult<>(true,"0000","",value);
    }
    public static <T>ResponseResult<T> sendSuccess(){
        return new ResponseResult<>(true,"0000","",null);
    }
    public static <T>ResponseResult<T> sendError(String code,T value){
        return new ResponseResult<>(true,code,"",value);
    }
    public static <T>ResponseResult<T> sendError(String code){
        return new ResponseResult<>(true,code,"",null);
    }
}
